package zhihui.mobile.bean.shop.order;

/**
 * Created by 张公铭 on 2017/8/31 0031.
 */

public class ShopOrder
{
    private String orderId = "0"; //订单id
    private int money;      //总价
    private int paymoney = 0;   //实际支付
    private int num;        //总数量
    private int price;      //单品价格
    private int goodsNum;   //单品数量
    private String specif;  //规格，多个","分隔
    private String title;   //单品标题
    private String thumbnails;  //但品缩略图。多个","分隔
    private int status;     //订单状态1--待支付，2--待收货，3--已完成，4--已取消
    private long time = 0l;      //订单创建时间

    public String getOrderId()
    {
        return orderId;
    }

    public int getMoney()
    {
        return money;
    }

    public int getPaymoney()
    {
        return paymoney;
    }

    public int getNum()
    {
        return num;
    }

    public int getPrice()
    {
        return price;
    }

    public int getGoodsNum()
    {
        return goodsNum;
    }

    public String getSpecif()
    {
        return specif;
    }

    public String getTitle()
    {
        return title;
    }

    public String getThumbnails()
    {
        return thumbnails;
    }

    public int getStatus()
    {
        return status;
    }

    public long getTime()
    {
        return time;
    }

    public void setOrderId(String orderId)
    {
        this.orderId = orderId;
    }

    public void setMoney(int money)
    {
        this.money = money;
    }

    public void setPaymoney(int paymoney)
    {
        this.paymoney = paymoney;
    }

    public void setNum(int num)
    {
        this.num = num;
    }

    public void setPrice(int price)
    {
        this.price = price;
    }

    public void setGoodsNum(int goodsNum)
    {
        this.goodsNum = goodsNum;
    }

    public void setSpecif(String specif)
    {
        this.specif = specif;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public void setThumbnails(String thumbnails)
    {
        this.thumbnails = thumbnails;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public void setTime(long time)
    {
        this.time = time;
    }

    public static String getStatus(int status)
    {
        switch (status)
        {
            case 1:
                return "待支付";
            case 2:
                return "待出库";
            case 3:
                return "待收货";
            case 4:
                return "已完成";
            case 5:
                return "已取消";
            case 6:
                return "退款中";
            case 7:
                return "已退款";
        }
        return "";
    }
}
